package com.wjb.xietong.ota.task;

import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import com.wjb.xietong.R;
import com.wjb.xietong.ota.BaseOTA;


public class OTAAddTask extends BaseOTA {
	private final int MESSAGE_COMMIT_NEW_TASK = 1;
	
	private long projectID;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentField(getLayoutInflater().inflate(R.layout.page_add_task, null));

		Bundle oldBundle = getIntent().getExtras();
		if(oldBundle != null){
			projectID = oldBundle.getLong("project_id");
		}
		
		setTopBarAndAction(getString(R.string.STR_TASK_02), new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				app_.getActManager().popActivity();
			}
		}, new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				//FIXME need add action for click this item
			}
		}, getString(R.string.STR_TASK_03));

	}

	@Override
	protected void findView(View v) {
		super.findView(v);
		
	}

	Handler handler = new Handler(Looper.getMainLooper()){

		@Override
		public void handleMessage(Message msg) {
			switch (msg.what) {
			case MESSAGE_COMMIT_NEW_TASK:
				
				break;

			default:
				break;
			}
			super.handleMessage(msg);
		}
		
	};
	
	@Override
	protected void setOnClickEvent() {
		// TODO Auto-generated method stub
		super.setOnClickEvent();
	}

}
